package com.tony.spring.mode.proxy;

/**
 * demoservice 静态代理
 * @author qiu
 *
 */
public class DemoServiceStaticProxy implements DemoService{
	
	private DemoService demoService;
	
	public DemoServiceStaticProxy(DemoService demoService){
		this.demoService = demoService;
	}

	@Override
	public String demo(String demo) {
		System.out.println("代理执行之前");
		demoService.demo("Tony");
		System.out.println("代理执行之后");
		
		return "Tony";
	}

	@Override
	public void demo2(String demo) {
		
		
	}

	@Override
	public void demo3(String demo) {
	
		
	}
}
